import { _decorator, AssetManager, assetManager, Component, director, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('start')
export class start extends Component {
    start() {
        assetManager.loadBundle("game", (err, bundle: AssetManager.Bundle) => {
            // director.loadScene("scene")
        });
    }
    click(event: Event, customEventData: string) {
        const params = JSON.parse(customEventData)
        switch (params.name) {
            case 'test1':
                director.loadScene("test1")
                break;
            case 'test2':
                director.loadScene("test2")
                break;
            case '恶魔轮盘':
                director.loadScene("恶魔轮盘")
                break;
            default:
                break;
        }
    }
    update(deltaTime: number) {

    }
}


